package net.amsoft.iservice.icontact.hibernate;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class Message extends IContactObject {
    private Message parent;
    private Synonym synonym;
    private String senderName;
    private String senderIName;
    private String senderEMail;
    private String hash;
    private Set text = new HashSet();

    public Message() {
    }

    public Message getParent() {
        return parent;
    }
    public void setParent(Message parent) {
        this.parent = parent;
    }

    public Synonym getSynonym() {
        return synonym;
    }
    public void setSynonym(Synonym synonym) {
        this.synonym = synonym;
    }

    public String getSenderName() {
        return senderName;
    }
    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getSenderIName() {
        return senderIName;
    }
    public void setSenderIName(String senderIName) {
        this.senderIName = senderIName;
    }

    public String getSenderEMail() {
        return senderEMail;
    }
    public void setSenderEMail(String senderEMail) {
        this.senderEMail = senderEMail;
    }

    public String getHash() {
        return hash;
    }
    public void setHash(String hash) {
        this.hash = hash;
    }

    public Set getText() {
        return text;
    }
    public void setText(Set text) {
        this.text = text;
    }

    public IContactObject insert() {
        this.setCreationTime(new Date());
        this.setModificationTime(new Date());
        return (this);
    }
}